import jsonschema

data = {"success": True, "code": 10000, "message": "操作成功", "data": None}
schema = {
    "type": "object",
    "required": ["success", "code", "message", "data"]
}
res = jsonschema.validate(instance=data, schema=schema)
print(res)
